package ABB;

public class Staff {
    private String name;
    private String sex;
    private String zhiwu;
    private int age;
    private double salary;

    public Staff() {
    }


    public Staff(String name, String sex, String zhiwu, int age, double salary) {
        this.name = name;
        this.sex = sex;
        this.zhiwu = zhiwu;

        this.age = age;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getZhiwu() {
        return zhiwu;
    }

    public void setZhiwu(String zhiwu) {
        this.zhiwu = zhiwu;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }



    @Override
    public String toString() {
        return "员工{" +
                "姓名：" + name + "\t" +
                "性别：" + sex +"\t" +
                "职务：" + zhiwu + "\t" +
                "年龄：" + age +"\t"+
                "薪水：" + salary +
                '}';
    }

}
